else if (this._mode === AuthPromptMode.UNLOCK_OR_LOG_IN)
reauthenticationOnly = false;
- this._userVerifier = new GdmUtil.ShellUserVerifier(this._gdmClient, {reauthenticationOnly});
+ this._userVerifier = this._createUserVerifier(this._gdmClient, {reauthenticationOnly});
this._userVerifier.connect('ask-question', this._onAskQuestion.bind(this));
this._userVerifier.connect('show-message', this._onShowMessage.bind(this));
this.add_child(this._message);
}
+ _createUserVerifier(gdmClient, params) {
+ return new GdmUtil.ShellUserVerifier(gdmClient, params);
+ }
+
_onDestroy() {
this._inactiveEntry.destroy();
this._inactiveEntry = null;